]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Make sure to reset the resizePopup after using it
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 2 Jan 2015 17:27:52 +0000 (09:27 -0800)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 2 Jan 2015 17:33:20 +0000 (09:33 -0800)
So that we'll recreate it the next time we want to show it. Otherwise,
we'll try to call things on a half-destroyed ResizePopup and end up
causing errors instead of showing the user their resize popup.

js/ui/windowManager.js

index 56f33a5b098f09e1fb5b60fabdfea6abba770321..65ec623c97ebeda4057d7cfb8e5ad150b51c3847 100644 (file)
@@ -1561,8 +1561,10 @@ const WindowManager = new Lang.Class({
 
             this._resizePopup.set(rect, displayW, displayH);
         } else {
-            if (this._resizePopup)
+            if (this._resizePopup) {
                 this._resizePopup.destroy();
+                this._resizePopup = null;
+            }
         }
     },
 });